public class Main {
    public int max2(int a,int b){
        return a > b?a : b;
    }
    public int max3(int a,int b,int c) {
        int max = max2(a, b);
        return max2(max,c);
    }
    public static void main(String[] args) {

    }
}